<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>商城登录</title>
</head>
<script>
    function toRegister() {
        window.location.href="${pageContext.request.contextPath}/user/toRegister";
    }
</script>
<body>

    <div style="text-align: center">
        <h1>欢迎登录</h1>
        <hr>
        <form action="${pageContext.request.contextPath}/user/login" method="post">
            账号：<input type="text" name="userName"><br>
            密码：<input type="password" name="password"><br>
            <a href="#" onclick="toRegister()">用户注册</a>&nbsp;&nbsp;&nbsp;&nbsp;免密登录：<input type="checkbox" name="cookie"><br>
            注入：<select name="sql">
                    <option>sql注入</option>
                    <option>非sql注入</option>
                </select>
            <input type="submit" value="登录">
        </form>
    </div>

</body>
</html>
